@use '../variables' as vars;

// Rules that take effect in dark mode.
@mixin dark-mode {
  @if (vars.$enable-dark-mode) {
    [data-theme='dark'] &,
    .rs-theme-dark & {
      @content;
    }
  }
}

@mixin high-contrast-mode {
  @if (vars.$enable-high-contrast) {
    [data-theme='high-contrast'] &,
    .rs-theme-high-contrast & {
      @content;
    }
  }
}
